#include "batterywidget.h"
#include "ui_batterywidget.h"

BatteryWidget::BatteryWidget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::BatteryWidget)
{
    ui->setupUi(this);
    this->initForm();
}

BatteryWidget::~BatteryWidget()
{
    delete ui;
}

void BatteryWidget::initForm()
{
    connect(ui->horizontalSlider, SIGNAL(valueChanged(int)), ui->battery, SLOT(setValue(int)));
    ui->horizontalSlider->setValue(30);
}

